package com.woniu.addresses.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.addresses.mapper.ProvinceMapper;
import com.woniu.addresses.model.Province;
import com.woniu.addresses.service.ProvinceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 欸嘿
 * @since 2024年05月29日
 */
@Service
public class ProvinceServiceImpl extends ServiceImpl<ProvinceMapper, Province> implements ProvinceService {

    @Resource
    private ProvinceMapper provinceMapper;
    /**
     * 查询所有的省份信息
     * @return 输出所有省份信息
     */
    @Override
    public List<Province> findAllProvince() {
        List<Province> provinces = provinceMapper.selectList(null);
        return provinces;
    }
}
